package com.guit.hrms.dto.approval;

import jakarta.validation.constraints.Future;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ApprovalOfferDTO {
    @NotNull(message = "id不能为空")
    private Integer id;
    @NotNull(message = "status不能为空")
    private Integer status;
    private String content;
    private MultipartFile offerFile;
    @Future(message = "入职办理时间不能早于当前时间")
    private LocalDateTime onboardingTime;
    private String onboardingPlace;
    @Future(message = "接受offer的截止时间不能早于当前时间")
    private LocalDateTime expiryTime;
}
